/*登录验证*/
import {codeVerify, lengthVerify, phoneNumber, requiredVerify} from "./verify";

export const loginRules = {
  phoneNumber: [
    requiredVerify("手机号"),
    phoneNumber()
  ],
  password: [requiredVerify("密码")]
}
export const registerRules = {
  phoneNumber: [
    requiredVerify("手机号"),
    phoneNumber()
  ],
  verCode: [
    requiredVerify("验证码"),
    lengthVerify(6)],
  password: [requiredVerify("密码")]
}

export const adminLoginRules = {
  account: [
    requiredVerify("账号或工号"),
    codeVerify()
  ],
  password: [requiredVerify("密码")]
}
